package com.qinglei.recoup.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 巡视记录表
 *
 * @author syp
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_tour_log")
@ApiModel(value = "TourLog对象", description = "巡视记录表")
public class TourLog implements Serializable {

    private static final long serialVersionUID = 1L;
    public static final int SUCCEED_YES = 1;
    public static final int SUCCEED_NO = 0;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "巡视开始时间")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "巡视结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "护工ID")
    private Long userId;

    @ApiModelProperty(value = "是否完成 1-完成 0-未完成")
    private Integer isSucceed;

    @ApiModelProperty(value = "完成时间")
    private LocalDateTime succeedTime;

    @ApiModelProperty(value = "用时 单位秒")
    private Integer spendTime;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime modifyTime;

}
